﻿<%@ Page Title="" Language="C#" MasterPageFile="~/views/admin/AdminMaster.master" AutoEventWireup="true" CodeFile="Evaluate.aspx.cs" Inherits="views_admin_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyContent" Runat="Server">
    <style>
        .card {
          background-color: transparent; /* 设置背景色为透明 */
          color: white; /* 设置字体颜色为白色 */
        }
        .repeater {
             display: flex; /* 设置为弹性盒子布局 */
            flex-wrap: wrap; /* 设置为自动换行 */
        }
        .zoom {
          width: 300px; /* 设置div的宽度 */
          height: 200px; /* 设置div的高度 */
          border: 2px solid black; /* 设置div的边框 */
          box-shadow: 0 0 10px gray; /* 设置div的阴影 */
          background-color:transparent; /* 设置div的背景色 */
          color: white;
          transition: transform 0.5s; /* 设置动画的持续时间为0.5秒 */
          margin: 20px; /* 设置div.zoom的外边距为10像素 */
          text-decoration:none;
        }

        .zoom:hover {
          transform: scale(1.2); /* 设置放大的比例为1.2倍 */
          box-shadow: 0 0 20px gray; /* 设置div的阴影 */
        }
</style>
    <div class="container-fluid">
       <div class="row">
           <div class="col">
               <h3 class="text-center" style="color:white">商品体验评价</h3>
           </div>
           </div>
            <div class="row">
               <div class="col-md-4">
                   <div class="mb-3">
                       <label for=""class="form-label" style="color:white">体验编号：</label>
                       <asp:TextBox ID="TextBox1" runat="server" Width="222px"></asp:TextBox>
                   </div>
                   <div class="mb-3">
                       <label for=""class="form-label" style="color:white">用户编号：</label>                     
                       <asp:TextBox ID="TextBox2" runat="server" Width="222px"></asp:TextBox>
                   </div>
                   <div class="mb-3">
                       <label for=""class="form-label" style="color:white">用户姓名：</label>
                       <asp:TextBox ID="TextBox3" runat="server" Width="222px"></asp:TextBox>
                   </div>
                   <div class="mb-3">
                       <label for=""class="form-label" style="color:white">商品名称：</label>
                       <asp:TextBox ID="TextBoxname" runat="server" Width="222px"></asp:TextBox>
                   </div>
                   <div class="mb-3">
                       <label for=""class="form-label" style="color:white">用户年龄：</label>
                       <asp:TextBox ID="TextBox4" runat="server" Width="222px"></asp:TextBox>
                   </div>
                   <div class="mb-3">
                       <label for=""class="form-label" style="color:white">商品评价：</label>
                       <asp:TextBox ID="TextBox5" runat="server" Width="222px"></asp:TextBox> 
                   </div>
                   <div class="mb-3">
                       <label for=""class="form-label" style="color:white">商品打分：</label>
                       <asp:TextBox ID="TextBox6" runat="server" Width="222px"></asp:TextBox>
                   </div>
                   <div class="mb-3">
                       <label for=""class="form-label" style="color:white">商品建议：</label>
                       <asp:TextBox ID="TextBox7" runat="server" Width="222px"></asp:TextBox>
                   </div >
                   <div class="mb-3"> 
                       <label for=""class="form-label" style="color:white">商品图片：</label> 
                       <div class="col-md-4"><asp:FileUpload ID="FileUpload1" runat="server" /> 
                       <asp:Button ID="scpicture" runat="server" Class=" btn-success btn" style="background-color:black;" Height="44px" Width="149px" Text="上传图片" OnClick="Unnamed3_Click" /> <asp:Image ID="Image1" runat="server" /> 
                        </div>
                   </div>
                   <div class="row">
                       <div class="col-md-4"> <asp:Button Text="提交反馈" runat="server" Class=" btn-success btn" style="background-color:black;" Height="44px" Width="149px"  OnClick="Unnamed2_Click"/> </div>
                       <div class="col-md-4"> <asp:Button Text="一键清除" runat="server" Class=" btn-success btn" style="background-color:black;" Height="44px" Width="149px" OnClick="Unnamed1_Click"/></div>
                   </div>
                    
                

               </div>
                   <asp:Label ID="Label2" runat="server" Text="申请物品记录以及情况：" style="color:white"></asp:Label>
                <div class="repeater">
            <asp:Repeater ID="rptProducts2" runat="server"  DataSourceID="LinqDataSource2" OnItemCommand="rptProducts2_ItemCommand" >
            <ItemTemplate>               
                <div class="zoom">              
                   <p>体验编号：<asp:Label ID="TrialID" runat="server" Text='<%# Eval("TrialID") %>' /></p>
                    <p>商品名称：<asp:Label ID="ProductName" runat="server" Text='<%# Eval("ProductName") %>' /></p>
                    <p>审核状态：<asp:Label ID="TrialStatus" runat="server" Text='<%# Eval("TrialStatus") %>' /></p>
                    <p>申请时间：<asp:Label ID="Label1" runat="server" Text='<%# Eval("TrialTime") %>' /></p>
                    <asp:Button ID="SelectButton" runat="server" Text="选择" CommandName="Select" />
                </div>              
            </ItemTemplate>
        </asp:Repeater>
                </div>
            <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="PJTY.dal.DataClasses1DataContext" EntityTypeName="" TableName="Trial" Where="ConsumerName == @ConsumerName">

            </asp:LinqDataSource>
       </div>
       </div>
      
   
</asp:Content>

